<?phpheader("Access-Control-Allow-Origin: *");header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");include "../../config.php";$now_time = date("Y-m-d H:i");$action=select_one_line_all_items($table_prefix."rpa_action_data","device_uid = '".$_REQUEST['device_uid']."' and on_time like '".$now_time."%'");$data = [    'id' => $action['nid'],    'plateform' => $action['plateform'],    'action' => $action['action'],    'content' => $action['content'],    'image' => $action['image'],];// 设置响应头为 JSON 格式header('Content-Type: application/json');// 输出 JSON 数据echo json_encode($data);?>